﻿using IM.Easy.Core.SeedData;
using IM.Easy.Entity.System;
using SqlSugar;

namespace IM.Easy.Api.SeedData
{
    public class OrgSeedData : MemorySeedData<SysDepartment>
    {
        public override List<SysDepartment> Read()
        {
            List<SysDepartment> list = [];

            list.Add(new SysDepartment { Id = 1, ParentId = 0, Name = "xx科技集团", Code = "000", Type = "GROUP", ManagerId = 2, Mobile = null });
            list.Add(new SysDepartment { Id = 2, ParentId = 4, Name = "财务部", Code = "123", Type = "DEPT", ManagerId = 0, Mobile = null });
            list.Add(new SysDepartment { Id = 3, ParentId = 1, Name = "成都分公司", Code = "001", Type = "COMPANY", ManagerId = 0, Mobile = null });
            list.Add(new SysDepartment { Id = 4, ParentId = 1, Name = "北京分公司", Code = "002", Type = "COMPANY", ManagerId = 0, Mobile = null });
            list.Add(new SysDepartment { Id = 5, ParentId = 1, Name = "虚拟组织部门", Code = "1001", Type = "VIRTUAL", ManagerId = 0, Mobile = null });
            list.Add(new SysDepartment { Id = 6, ParentId = 0, Name = "小米科技集团", Code = "XM001", Type = "GROUP", ManagerId = 0, Mobile = null });

            return list;
        }
    }
}
